<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var str = prompt("请输入");
        {
            //qq号
            let reg = /^[1-9]\d{4,10}$/
        }
        {
            // 网址
            let reg = /^(http[s]?:\/\/)(www\.)\w{2,}(\.\w{2,3}(\.\w{2,3})?)$/i ;
            // console.log(reg.test(str));
            // console.log(str);
        }
        {
            //邮箱
            let reg = /^\w+(@qq\.)(\w{2,3}(\.\w{2,3})?)$/
            // console.log(reg.test(str));
            // console.log(str);
        }
        {
            let reg = /^(?![3-9]..|2[6-9].|25[6-9])\d{1,3}$/;
            console.log(reg.test(str));
            console.log(str);
        }
    </script>
</body>
</html>